Adding my existing hacky code.