Moved configuration to lib.