Fixed some bugs with mapperSt3:
Need to figure out why it reduces number of inputs.
Need to modify code accordingly.