Adding collision bitmasking