Send argument to correct function