File renamed. Parameter check added.