Refactored Driveworks file and added Directory Polling.