Simpler and safer way of storing runstring function.