All 4 functions are working now