Fixed bug in query projection
Major overhaul to how presets are processed, needed in order to expose preset functionality through API.