Make CheckErr static