Removed uneccesary funciton