Added warning flags (by ukasz)