Changed the interface for stock querying