I would add a warning..
One of my friends did that when we were out riding one day, his chain came off, reach down to put it back on whilst still sitting on the bike, not really the best idea, his glove got caught in the chain and he somehow ended up rolling forward, cue the end of his finger ending up in his glove and lots of blood everywhere.