Added check size for binary file