Instead of include this chunk of code in every agent, move it to rc_util should be cleaner way.
rc_util