Fixed various issues with MPD formulas, and added the ability to replace Staff Profile Properties