Added Scanning input and stuff