Added loader utilities and tests.