Added dynamic creating method for testing