Updated and debugged functions