Extracted timestamp into its own methof in action.rb