Removed Lopes code