Fixed problem with integration.