Added take and drop function.