Pulled app out to be reused for testing