Added function to get tradepile