Replaced deprecated Kernel.binary_to_integer/1