Call correct functions