Whoa. There MUST be a better way to do this :) Please add a FIXME