Changed arguments types from String to Class type.