More minor modifications to fix issues with equations.