Using before instad of notify