Thats what I get for trying to copy specific functions through the github web editor. Sorry about that - function added in.