Fix script time issues by reading char by char