Edited function. Working build
Edited function. Working build