Edited for formatting