How to allow apps from anywhere

An annoying feature of modern OS X Sierra is it taking choice away from you and not showing the option to allow apps from anywhere. However, this can be enabled by typing the following into Terminal:
 
sudo spctl --master-disable
 
followed by your admin password.
Going into Gatekeeper will now give the option again.
To return to default, type:
 
sudo spctl --master-enable
  Map