Moved warning declaration to make code usable