Pre-modification. Succesfully build-able in XCode 6.01
Simplified so it just works on a 5 second basis.