Worked on query action.