Added registering of defaults in GUI scripts