Fixed wrong prefix check, added reset option, and fixed wrong method names