Copyright (c) 2009 Pavel Caha