Working hacky implementation.