Undoing last commit. Abandoning template idea in favor of casting.
Code reduction surgery.