Hacky implementation.