Added logging to all the methods to track the user and extract metrics