Fixed recursion and updated instructions