Little refactoring

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