Fixed some wrong brackets, changed commands to console.