Separate out app specific code