Fixed to work on linux.