Executes function.