Finished the business logic