Added hacks as functions