Functions written. Ready to test.