Adding before and after hooks to Allotment