added GetStickyTimeLeft and fixed some warnings