Edited for clarity and future use