Used only for testing