Using anonymous function instead of eval for timestamp.