Added a little defensive code around snac codes