Wrap functions with a timer to notify of timeouts