Finally fixed the code to work with the bill reader