Created the initial hook that checks to make sure that defined variables are only set to allowed options.