Added a weight file checker