Implement use_package. Closes #559