Finish account function code and add endpoint code.