Added helper function for testing purposes