Fix interval to actually work