Reverting to static memory, and fixing the forin.dis bugs