Fixed warning message
Added FunctionalInterface annotation