Refined scheduling algorithms.  Final commit probably.

Signed-off-by: Daniel Pierce <paladin2350@gmail.com>