Added create_slug function.