DONE and optimised for iOS

Signed-off-by: Adam Palmer <ad@palmerama.tv>