Moving the application logic to module.