Adapted main for testing