Breaking out the ThinkingBicycle stuff into functions.