Renamed variable "retval" to "success".