Making run_rank mandatory and CONSTANTS fix