Added overlap function