Edited for clarity and unneeded output text