Added MakeX function