Add circularity checks
Comment obj-pile, remove unused function