Updated for BSD competibility
Updated for BSD competibility