Removed some inheritance and ninja-added a polling loop.