Fix for missing binary to integer function