Adding ability to release a handle and to write multiple bytes at a time