First function for package