Merge #44: Add support WRTF command, fix bugs