Added initial support for weighting schemes.
Removed some unused code from Application.pl