Brought BSD up to date with new API