Put stuff into functions.