Added check_sizes method