Adding post and pre execute events