Added build check in a method