Changed @tick variable to @frame to be more clear what it's doing.