Fixed to work on Linux