Added lenght and changed to a version that can be called without root.