Lots of edits and debugging. Got SJF working!