Combining functions into an application