Allow before and after callbacks