Removed unnecessary functions from application.java