Implemented flexible Nexus file writing system.