Altered the code to be slightly more robust

Trying to combat the consumptions/pills not loading problems we've been plagued with