Rudimetary memory handling. Only 10k frees to go