Modified to work with Linux rather than windows.