Add parse query params method