Added entity mimicking and more stability fixes.