Updated input loop/added id conversion function. Just need to complete the function and prescription should be ready.