Some error control. File loading done