This is an ugly hack, sure.