Deciding what goes into a function