Removed credentials, refactored controller method