Hackish implementation of warnings restrictions. #37