Separate out functions.