Added K and M input options