Created the core functionality and testing.