Working solution for binary.