Register Spray at the correct moment