Copyright (c) 2014 Martin Kolárik. Released under the MIT license.