Added a new parameter to mesh for input.