Only call parseParams in one place