Hi All, Thanks again for the feedback. I've improved the implementation of the bit allocator in line with your suggestions and refactored some other functions to reduce repeated code. Regards, Aaron.