Add before and after perform events