Refactoring...
Refactoring and cleanup...
Tests for PreemptiveResource.