Improvement on hint script