Created a function to log actions