Added some methods for onlineMIL