Created method for inferencing