Adapted code style.