Removed console logs and a test method