Run it before the insert statement