Implemented getBytes