Changed for linux compatibility