Refactored code to include cloud based PaaS functionality.