Added inreference deletions detection
Removed hardcode from params