Hacky but functional first pass.