Modified main