Created shared functions file