Changed BOOL to bool. Going to bed now.