Changed Darwin implementation