Finally caught my stupid error, everything is now functioning perfectly.