Dev add query options

Added query options to alm function.

Still need to add code to handle some of this.