Updated Buying function (thanks anime)