Renamed preprocess to before, for consistency with form plugin