Added model querying conditions