Implemented plain format and some engine improvements.