Fork of hzqtc's fmd to include more advanced features