Removed console.logs from within functions.