Removed hard coded action from query