Fixed some grammar and shortened the code