Changed memory allocation
Reverted to old less accurate stuff.

Couldn't get the new one to work without crashing and stuttering.