Trying to add function