USe map instead of sets for timestamps && renamed key constants.