Added: Initial and latest migrations logic