Add a before method in the fluid API