selectWithAttributes works. One step closer to resolving #18.