Move warnings into code