Added build method (for testing)