Removed main function. Application is now a library