Add Auto Adjust

Signed-off-by: Zhi Jin <peter.zjin@gmail.com>