Fixed configure sending/receiving issues and optimize logic