Logic is 100% working ;) Job done!

Signed-off-by: Piotr Bocheński <bochenski.piotr@gmail.com>