Resolve issue #39, exp, squad and intermediate functions