Error checking in adding/editing hacks