Refactored the component update()/draw() methods.