Slight modification for linux systems