Made some functions (gah)