Oh boy was this a hack, but I'll fix it later