Adjusted to run on Linux