Old code pulled into git

Signed-off-by: Peter Legierski <peter@legierski.net>