Added support for parity check information

Note that this is just a big workaround. It needs much more profound solution

Signed-off-by: Ilya Mikhaltsou <morpheby@gmail.com>