Created new function, not working froperly...