Done with rectint. Bug without the reference in the arguments
for the rectint function.