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

Api tick and ref updates