Added Core Engine Loop