Removing reference to static $display variable