Moved params method inside the context