Encoding works
Added label processing