Moved some non-used code into scratch pad.