Fixed some styling issues and added return for external function call.