Added error parameter to MJProject static constructor method.