Error-Catching

Added nulling functionality