Modified for linux distros