Copyright Jacek Bzdak 2012. Licensed under GPL 3 or never. Some parts of this code are licensed under BSD style license.