Make clear function more user-friendly