Removed extraneous console.logs; error handling pending