Move around the scan function for organizational purpose