Reworked after review.

Signed-off-by: Attila Vamos <attila.vamos@gmail.com>