Pre and post execute hooks are working