Changed naming from modulateMap to mapModulate, fixed brackets, added a few more conditions.