Solved monkey-typing problem