Initial commit. Copied some utils from BreakTime! project.