Reworked everything to standarts. Raw WRITE still missing.