Simplify 'before' code