This is base functions that I have written