Fixed various bugs.
**SCOREBOARD IS NOT FUNCTIONAL IN THIS VERSION/COMMIT**