Changes to stock class and stockpanel