Removing console.log
Adding single function