Started serializing and printing based on cardinput