 					menuElement = popup.find(".J-N.J-Ks[role='menuitem']")
 					popup.parent().append menu
 					menuElement.hover 	((e) ->
-											ppos = popup.position()
-											css =
-												top: 	$(@).position().top + ppos.top
-												left: 	ppos.left + popup.outerWidth()
-
 											inMenu = true
 
-											x = ->
+											x = =>
 												return unless inMenu
-												menu.css css
+												ppos = popup.position()
+												menu.css
+													top: 	$(@).position().top + ppos.top
+													left: 	ppos.left + popup.outerWidth()
 												menu.show()
 												return
+
 											_.delay x, delay
 
 											return),
 										((e) ->
 											inMenu = false
+
 											x = ->
 												hideMenu()
 												return
+
 											_.delay x, delay
 
 											return)
 
+					_1m = 60 * 1000
+					_1h = 60 * _1m
+					_1d = 24 * _1h
+
+					_delta = (offset) ->
+						"delta:#{offset}"
 
 					props =
 						noanswer: 	false
 						unread:		false
 						star:		false
 						inbox:		false
+						#when:		_delta _1m
+
+
+					boxToggle (popup.find "[act='manual']"), 'J-Ks-KO', true, (e, checked) ->
+						if checked
+							toggle menu.children(), 'J-Ks-KO', false, false
+							props.when = 'specified:0'
+						isValid()
+						return
+
 
 					submit = popup.find "[act='submit']"
 					error = popup.find "[act='error']"
+					isValid = ->
+						valid = (props.unread or props.star or props.inbox) and props.when
+						submit.toggle !!valid
+						error.toggle !valid
+						return
 
 					# This shows the error message or the submit button
-					boxToggle popup.find('.J-LC'), () ->
-						valid = !!(props.unread or props.star or props.inbox)
-						submit.toggle valid
-						error.toggle !valid
-						return
-
-					addMenuElement 'in 1 minute', true, (checked) ->
-					addMenuElement 'in 5 minutes', false, (checked) ->
-					addMenuElement 'in 2 days', false, (checked) ->
-					addMenuElement 'in 1 week', false, (checked) ->
+					boxToggle popup.find('.J-LC'), 'J-LC-JR-Jp', false, (e, checked) ->
+						props[e.attr 'act'] = checked
+						isValid()
+						return
+
+
+					presets = popup.find "[act='presets']"
+
+					if self.debug
+						addMenuElement 'in 1 minute', false, presets, (e, checked) ->
+							if checked
+								props.when = _delta _1m
+							isValid()
+							return
+
+					addMenuElement 'in 5 minutes', false, presets, (e, checked) ->
+						if checked
+							props.when = _delta _1m * 5
+						isValid()
+						return
+
+					addMenuElement 'in 1 hour', false, presets, (e, checked) ->
+						if checked
+							props.when = _delta _1h
+						isValid()
+						return
+
+					addMenuElement 'in 2 days', false, presets, (e, checked) ->
+						if checked
+							props.when = _delta _1d * 2
+						isValid()
+						return
+
+					addMenuElement 'in 1 week', false, presets, (e, checked) ->
+						if checked
+							props.when = _delta _1d * 7
+						isValid()
+						return
 
 					addHovering menu
 
-					# Clicks on popup do not close it
+					# Clicks on menu do not close the popup
+					menu.on 'click', (e) ->
+						e.stopPropagation()
+
+					# Clicks on popup itself do not close it either
 					popup.on 'click', (e) ->
 						e.stopPropagation()
 

									</div>
									"""

						element.attr 'aria-checked', if checked then 'true' else 'false'
						element.toggleClass 'J-Ks-KO', checked

						addHovering element
						boxToggle element, onChange
						menu.append element
						return


					popup = $ 	"""


				if !popup

					toggle = (target, selectedClass, selected, exclusive) ->
						target.toggleClass selectedClass, selected
						target.attr 'aria-checked', if selected then 'true' else 'false'
						if exclusive
							toggle target.siblings(), selectedClass, false, false
						return

					# Toggling checkboxes
					boxToggle = (target, selectedClass, exclusive, onChange) ->
						target.on 'click', (e) ->
							e = $ @
							checked = e.hasClass selectedClass

							# We can't deselect the selected item if we are in exclusive mode
							return if exclusive and checked
							
							toggle e, selectedClass, !checked, exclusive
							onChange? e, !checked
							return
						return
					
					
					delay = 300
					menu = 	$ 	"""
								<div class="J-M J-M-ayU" style="-webkit-user-select: none; left: 178px; top: 239px; display: none; " role="menu" aria-haspopup="true" aria-activedescendant="">
								</div>
								"""

					hideMenu = ->
						return if inMenu
