Added a postLoop() method