Execute a function before a function.