Replace static r/w buffer sizes with dynamic ones. Implement PCOR4_20.