* Cleanup: use switch statement i.o. multiple if-then statements.