Add code to derive keys from time value