Modify to run on Linux environment