Added functionalities to spritz input and read