Moving mmap to poly, cleaning up devices.