Added stock functionality