Try to implement encoder...