Added queries for details