Made code more concise by using named returnswqa