Add logging for execution time of certain functions