Modified module to include two methods to parse either a single line or an array.