ContainsStock subroutine