Properly pass in query and style parameters