Modified and tested code for StorageChecker class.