Added pre and post debugs