Actually adding the function