Added before() and after() methods