Created raw searching function

needs further developing