Initialise process filter after the local variables have been set up