Fix bug with variable assignment causing crash when getting instrument depth
Add ability to filter return objects by chosen attributes, as well as pseudo-attributes (non-database-stored)