Trying to figure out why I’m getting various exceptions