Modified main for checking init