Fixed and used Cole's edge functions
Something