Refactor Blob Code