Inline one-off helper functions, fix seconds formatting