Made nonstatic method static, fixed unknown array index error