Added in catch for nullPointers