Code (with odd error)

Code with not much new functionality which gives an odd error at this
moment.