Final version of vectorial functions