Fix set datestamp bug, make some shorthands.