Copyright (c) 2011 Potekhin