Cleaned up and documented more clearly