Added functions for registering external options.