Integral is tested and works