Removed the explicit return from the MainActivity which was throwing exceptions.