Fixed graph for alternate code
Further developed alternative functions.