Fixed the bug Jayme was encountering adn implemented variable market rates on buying