Added functionality for add goal to application.