Intelligent warehousing