Try to make it a bit more memory efficient.