Fix elements specification
Use utils.allElements instead of utils.outputAll
Move attributes object into output object