Added scanner functions as a function in Scanner factory instead of services