Adding some utils, new piece definitions and migration utility