Added mkd function