Added linux compatibility