Added code loading and protection of the parser from sudden EOFs.