diff --git a/autoload.php b/autoload.php
index <HASH>..<HASH> 100644
--- a/autoload.php
+++ b/autoload.php
@@ -7,10 +7,11 @@
  */
 
 function odata_query_autoload($class) {
-    $file = __DIR__.DIRECTORY_SEPARATOR.str_replace('\\', DIRECTORY_SEPARATOR, str_replace('-', '_', $class)).'.php';
+    $file = __DIR__.DIRECTORY_SEPARATOR.'src'.DIRECTORY_SEPARATOR.
+      str_replace('\\', DIRECTORY_SEPARATOR, str_replace('-', '_', $class)).'.php';
     if (file_exists($file)) {
         require_once $file;
     }
 }
-# Enable if composer autoload isn't available
-#spl_autoload_register('odata_query_autoload');
\ No newline at end of file
+
+spl_autoload_register('odata_query_autoload');
\ No newline at end of file
Updated autoload to use correct directory structure