Move OS run code to base class