Edited out unnecessary code.