Factor Search Function (implemented)