Code to be merged.. used for intermediate storage only