Modified registration code and styles.