Refactoring.

Signed-off-by: mateusz <kontakt@mateuszmidor.com>