Added show marker logic.