Before function reduction