Move ldl check up, so it can actualy be used