Trying to combine some functions, lets see how it goes