Began adding compatibilty for BSD