Miscellaneous code for my participation the GSoC 2014