Api tick and ref updates
Merge pull request #2 from WhiteXZ/master

Api tick and ref updates