Adapted profile to work with other OSes as well.