Check keystone if it is ready
disable xtrace in functions
Fix bug
Fix bug