Added more functions for buying/selling.