Contour integration with corners. (October 2016)