Made red a temp functions