Added logging of method execution