Added custom trace which uses NSLog