Bug found: return statemend was ommited.