Added runnable interface to entity.