Add main code for testing