Added object overlap checking