Some basic scanning stuff in.