Setting up before filters and after filters where they should exist.