Objective-C Port of tolly765's app