Added some logic to take care of possible issues if the reference moment origin is not specified correctly in the config file.