Understand what's going on now, fixed some errors in my code.